import './index.scss'
import { Link } from 'react-router-dom'
// import { Image } from 'antd-mobile'
type Props = 
{
    title?: string
    link:string
    classname?: string
}

const BreadNav = (props: Props) => { 
    const { title, link, classname } = props
    return (
        <div className="bread-item" >
            <span className="iconfont-lt"> &gt; </span>
            {classname === "active" ? <span className="active">{title}</span> : 
            <Link to={link}><span>{ title }</span></Link>
            }
        </div>
    )
}

export default BreadNav